.chatPage {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  background-color: #f5f5f5;
}

.chatHeader {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 10;
}

.backButton {
  cursor: pointer;
  padding: 4px;
  margin-right: 8px;
}

.chatInfo {
  flex: 1;
  cursor: pointer;
}

.chatName {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.chatStatus {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.moreButton {
  cursor: pointer;
  padding: 4px;
}

.chatContent {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.messageItem {
  display: flex;
  margin-bottom: 16px;
  max-width: 80%;
}

.messageLeft {
  align-self: flex-start;
}

.messageRight {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.messageSenderAvatar {
  margin: 0 8px;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.avatarLarge {
  border-radius: 50%;
  object-fit: cover;
}

.messageContent {
  display: flex;
  flex-direction: column;
}

.messageSenderName {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.messageBubble {
  padding: 10px 12px;
  border-radius: 16px;
  max-width: 100%;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.4;
}

.messageLeft .messageBubble {
  background-color: #fff;
  color: #333;
  border-top-left-radius: 4px;
}

.messageRight .messageBubble {
  background-color: #2b7efb;
  color: #fff;
  border-top-right-radius: 4px;
}

.messageTime {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  align-self: flex-end;
}

.inputContainer {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #fff;
  border-top: 1px solid #eaeaea;
  position: sticky;
  bottom: 0;
}

.inputActions {
  margin-right: 8px;
}

.inputBox {
  flex: 1;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 6px 12px;
}

.inputField {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  resize: none;
  max-height: 80px;
  min-height: 24px;
}

.sendButton {
  margin-left: 8px;
  cursor: pointer;
  opacity: 0.7;
}

.sendButtonActive {
  opacity: 1;
}

.infoSidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.infoHeader {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
}

.closeButton {
  cursor: pointer;
  padding: 4px;
  margin-right: 8px;
}

.infoTitle {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.infoContent {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.infoAvatar {
  margin-bottom: 16px;
}

.infoName {
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin-bottom: 24px;
}

.membersList {
  width: 100%;
  margin-top: 16px;
}

.membersTitle {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eaeaea;
}

.memberItem {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.memberAvatar {
  margin-right: 12px;
}

.memberInfo {
  flex: 1;
}

.memberName {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.memberStatus {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}